package com.hutao.medical.pojo.model;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 检验报告
 * @author lyh
 *
 */
public class HospitalVisitExaminationReportsInfo {

	/**
	 * visitGuid
	 */
	private String visitGuid;
	
	private List<HospitalVisitExaminationReportsRecord> examinationReportsRecords = new ArrayList<HospitalVisitExaminationReportsRecord>();

	@JsonIgnore
	public void clearEmpty(){
		for (int i = this.examinationReportsRecords.size()-1; i >=0; i--) {
			HospitalVisitExaminationReportsRecord examinationReportsRecord = this.examinationReportsRecords.get(i);
			examinationReportsRecord.clearEmpty();
			if(examinationReportsRecord.isEmpty()){
				
				if(examinationReportsRecord.getExaminationReportsItems().size() == 0){
					this.examinationReportsRecords.remove(i);
				}
				
			}
		}
	}
	
	public String getVisitGuid() {
		return visitGuid;
	}

	public void setVisitGuid(String visitGuid) {
		this.visitGuid = visitGuid;
	}

	public List<HospitalVisitExaminationReportsRecord> getExaminationReportsRecords() {
		return examinationReportsRecords;
	}

	public void setExaminationReportsRecords(
			List<HospitalVisitExaminationReportsRecord> examinationReportsRecords) {
		this.examinationReportsRecords = examinationReportsRecords;
	}

	
	
	
}
